const Merge = require('webpack-merge');
const path = require('path');
const base = require('./base.config.js');

module.exports = Merge(base, {
	mode: 'development',
	devtool: 'inline-source-map',
	devServer: {
		contentBase: path.resolve(__dirname, '../dist'),
		compress: true,
		host: '127.0.0.1',
		port: 8080,
		open: true,
		proxy: {
			'/api': {
				target: 'http://127.0.0.1:3000',
				changeOrigin: true
			},
			'/public': {
				target: 'http://127.0.0.1:3000',
				changeOrigin: true
			}
		}
	}
});